#!/usr/bin/python
"""
Defaults and config texts.
"""

import os
import random

## user data

TAMA_PATH = os.path.join(os.path.expanduser('~'), ".tama")
TAMA_CONFIGFILE = os.path.join(TAMA_PATH, "config.json")
TAMA_CONFIG = {}
TAMA_DIR = os.path.join(TAMA_PATH, "tamas")

## other data

feelings = {
        "a": ["anxious", "calm", "anxiously"],
        "b": ["brave", "cautious", "bravely"],
        "c": ["cautious", "clairvoyant", "cautiously"]
        }

tama_phase = {
        "egg": 0,
        "larva": 1,
        "teenager": 2,
        "adult": 3,
        "elder": 4,
        "carcass": 5
        }

age_table = { # multiplier for aging by check-ins
        "egg": 10,
        "larva": 20,
        "teenager": 5,
        "adult": 45,
        "elder": 20,
        "carcass": 1
        # longer progression here
        #"egg": 2*10,
        #"larva": 2*20,
        #"teenager": 2*5,
        #"adult": 2*45,
        #"elder": 2*20,
        #"carcass": 1
        }

squeeze_feedback = {
        "egg": {
            0: "cold",
            1: "tingly",
            2: "resonant",
            3: "pulsating",
            },
        "larva": {
            0: "a quiet chirp",
            1: "a curious peep",
            2: "an energetic meep",
            3: "an excited screech",
            },
        "teenager": {
            0: "turns away",
            1: "huffs",
            2: "sniffs",
            3: "looks at you intently",
            },
        "adult": {
            0: "nods in recognition",
            1: "takes your hand and squeezes back",
            2: "lets out a chuckle",
            3: "lets out a sigh",
            },
        "elder": {
            0: "encourages your work",
            1: "smiles gently",
            2: "lets out a sigh",
            3: "looks to the distance",
            },
        "carcass":{
            0: "",
            1: "",
            2: "",
            3: "",
            }
        }

## game messages

name_level = { # flavor text to indicate how close a false name is to true name
        0: "This name strikes a sharp clarity in your mind as it rings true.",
        1: "This name buzzes with anticipation!",
        2: "This name makes a pleasing hum as you say it out loud.",
        3: "This name brings a slight tingle to your throat.",
        4: "This name begins to convey an idea.",
        5: "This name is not immediately suitable, but it may stand for now."
        }

no_squeeze = [
        """\
As you begin to flex your fingers, you suddenly experience remorse. You cannot
bring yourself to carry through the motion.\
""",
        """\
Before you can ready your hands, you feel a strange aversion in your gut. You
return your hands to your sides.\
""",
        """\
Just as you decide to do it, you change your mind immediately before you do
something you regret.\
""",
        ]

call_fail = [
        """\
As you begin to vocalize, your voice catches in your throat. This doesn't seem
like the time.\
""",
        """\
Before you can take in a breath to speak, you feel a sudden need to remain
silent. You do not speak.\
""",
        """\
Just as you decide to voice that name, you change your mind immediately before
you do something you regret.\
""",
        ]

## documentation

config_readme = """\
Warning!

Reading or disturbing the contents of this file may have STRANGE EFFECTS.

These files contain MAGICAL INCANTATIONS for your MYSTERIOUS PARTNER, some of
which are FORBIDDEN SECRETS, and others are DELICATE WEAVINGS.

If you handle these files in any way, you may cause IRREPARABLE DAMAGE. No
guidelines will be provided; it is entirely up to you!
"""
